<form class="form-horizontal well" method="post" action="<?php echo base_url(); ?>login/validaLogin" accept-charset="utf-8">
    <fieldset>
    <legend>Inicio de Sesión</legend>
    <div class="control-group">
        <?php if ($this->session->flashdata('error')){ ?>
        <div class='message' style="text-align:center; margin-bottom:10px; color:red">
            <?php echo $this->session->flashdata('error'); ?>
        </div>
        <?php } ?>
        <label class="control-label" for="user">Email</label>
        <div class="controls"><input type="text" class="input-medium" placeholder="Email" name="user" id="user"></div>
    </div>

    <div class="control-group">
        <label class="control-label" for="pass">Contraseña</label>
        <div class="controls"><input type="password" class="input-medium" placeholder="Contraseña" name="pass" id="pass"></div>
    </div>

    <div class="form-actions">
        <button type="submit" class="btn btn-primary">Ingresar</button>
        <button class="btn btn-success" type="button" onclick="registroUsuario()">Registrate</button>
    <!-- <button type="submit" class="btn">Olvidé mi contraseña</button>-->
    </div>
</fieldset>
</form>